package com.steven.design.Builder_Pattern.Prototype;

/**
 * 原型模式拷贝的数据是浅拷贝，只会拷贝基本数据类型
 */
public class Order {
    public static void main(String[] args) {
        MilkTea mikTea_me = new MilkTea();
        mikTea_me.ice =false;
        mikTea_me.type ="原味";

        try {
            MilkTea clone = mikTea_me.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
    }
}
